package com.melon.modules.sys.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * Author: Xiong Jin Teng
 * Date: 2016/9/8
 * Time: 0:19
 */
@RestController
@RequestMapping(value = {"/cache"})
public class EhcacheDemoController {


    @RequestMapping(value = {"/index"})
    public Object index() {
        //cacheManager.getCache("usercache").put("xjt", 123);

        return "cacheManager.getCache(\"usercache\").get(\"xjt\")";
    }
}
